<?php

include 'config.php';
include 'grab_stats.php';

ini_set('max_execution_time', 14400);

$sql = "select bi_user_id from user_profile";
$result = mysqli_query($con, $sql);

while($row=mysqli_fetch_array($result, MYSQLI_ASSOC)){
	grabStats($row['bi_user_id']);
	echo $row['bi_user_id']."<br>";
	sleep(9);
}

mysqli_close($con);
?>